package com.tutorialspoint.annotation;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class HelloWorldConfig {
	@Bean
	public HelloWorld helloWorld() {
		HelloWorld hw = new HelloWorld();
		hw.setMessage("HelloWorldConfig");
		return hw;
	}
}
